package com.night.xjh.service;

import com.github.pagehelper.PageInfo;
import com.night.common.entity.xjh.Visit;

import java.util.List;

/**
 * @ClassName: VisitService
 * @Description: //TODO
 * @author: xjh
 * @date: 2022/10/21-11:01
 * @version: v1.0
 */
public interface VisitService {
    void add(Visit visit);
    void delete(int id);
    void update(Visit visit);
    PageInfo<Visit> getByDate(String startDate,String endDate,int pageNum,int pageSize);
    PageInfo<Visit> getAll(int pageNum,int pageSize);
    Visit getById(int id);
    PageInfo<Visit> getByCondition(Visit visit,int pageNum,int pageSize);
}
